package com.jytc.framework.po;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * FwDept entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "fw_dept")
public class FwDept implements java.io.Serializable {

	// Fields

	private Integer deptId;
	private Integer parentDeptId;
	private String deptName;
	private String shortName;
	private String contactName;
	private String tel;
	private String email;
	private String deptDesc;
	private Integer status;
	private Integer systemType;

	// Constructors

	/** default constructor */
	public FwDept() {
	}

	/** minimal constructor */
	public FwDept(Integer parentDeptId, String deptName, String tel,
			String email, Integer status) {
		this.parentDeptId = parentDeptId;
		this.deptName = deptName;
		this.tel = tel;
		this.email = email;
		this.status = status;
	}

	/** full constructor */
	public FwDept(Integer parentDeptId, String deptName, String shortName,
			String contactName, String tel, String email, String deptDesc,
			Integer status, Integer systemType) {
		this.parentDeptId = parentDeptId;
		this.deptName = deptName;
		this.shortName = shortName;
		this.contactName = contactName;
		this.tel = tel;
		this.email = email;
		this.deptDesc = deptDesc;
		this.status = status;
		this.systemType = systemType;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "DEPT_ID", unique = true, nullable = false)
	public Integer getDeptId() {
		return this.deptId;
	}

	public void setDeptId(Integer deptId) {
		this.deptId = deptId;
	}

	@Column(name = "PARENT_DEPT_ID", nullable = false)
	public Integer getParentDeptId() {
		return this.parentDeptId;
	}

	public void setParentDeptId(Integer parentDeptId) {
		this.parentDeptId = parentDeptId;
	}

	@Column(name = "DEPT_NAME", nullable = false, length = 50)
	public String getDeptName() {
		return this.deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	@Column(name = "SHORT_NAME", length = 20)
	public String getShortName() {
		return this.shortName;
	}

	public void setShortName(String shortName) {
		this.shortName = shortName;
	}

	@Column(name = "CONTACT_NAME", length = 20)
	public String getContactName() {
		return this.contactName;
	}

	public void setContactName(String contactName) {
		this.contactName = contactName;
	}

	@Column(name = "TEL", nullable = false, length = 21)
	public String getTel() {
		return this.tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	@Column(name = "EMAIL", nullable = false, length = 200)
	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name = "DEPT_DESC", length = 200)
	public String getDeptDesc() {
		return this.deptDesc;
	}

	public void setDeptDesc(String deptDesc) {
		this.deptDesc = deptDesc;
	}

	@Column(name = "STATUS", nullable = false)
	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Column(name = "SYSTEM_TYPE")
	public Integer getSystemType() {
		return this.systemType;
	}

	public void setSystemType(Integer systemType) {
		this.systemType = systemType;
	}

}